package org.jeecg.modules.music.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.api.vo.category.CategoryVo;
import org.jeecg.modules.music.entity.MusCategory;
import org.jeecg.modules.music.model.CategoryIdModel;
import org.jeecg.modules.music.model.MusCategoryTreeModel;

import java.util.List;

public interface IMusCategoryService extends IService<MusCategory> {

    void saveCategoryData(MusCategory category, String username);

    List<MusCategoryTreeModel> queryTreeList(String ids);

    List<MusCategoryTreeModel> queryTreeList();

    List<CategoryIdModel> queryCategoryIdTreeList();

    boolean updateCategoryDataById(MusCategory musCategory, String username);

    List<MusCategoryTreeModel> searchByKeyWord(String keyWord);

    void deleteBatchWithChildren(List<String> asList);

    boolean delete(String id);

    List<CategoryVo> queryPlaylistCatList();
}
